package org.seckill.dao;

import org.apache.ibatis.annotations.Param;
import org.seckill.pojo.Seckill;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SeckillMapper {
    int deleteByPrimaryKey(Long seckillId);

    int insert(Seckill record);

    int insertSelective(Seckill record);

    Seckill selectByPrimaryKey(Long seckillId);

    int updateByPrimaryKeySelective(Seckill record);

    int updateByPrimaryKey(Seckill record);

    //减库存
    int reduceNumber(@Param("seckillId") Long seckillId, @Param("killTime") Date killTime);

    List<Seckill> selectALl();

    void seckillByProcedure(Map<String,Object> map);


}